/**
 * addRouters:添加路由
 */
const getters = {
	//用户相关
	menuList: state => state.user.menuList,
	elementList: state => state.user.elementList,
	roles: state => state.user.roles,
	accessToken: state => state.user.accessToken,
	refreshToken: state => state.user.refreshToken,
	userStatus: state => state.user.userStatus,
	userPhone: state => state.user.userPhone,
	userCode: state => state.user.userCode,
	userName: state => state.user.userName,
	userAvatar: state => state.user.userAvatar,
	//app相关
	device: state => state.app.device,
	// theme: state => state.app.theme,
	// color: state => state.app.color,
	// multiTab: state => state.app.multiTab,
	// language: state => state.app.language,
	sidebar: state => state.app.sidebar,
	// isCollapse: state => state.app.isCollapse,
	//权限相关
	addRouters: state => state.permission.addRouters,
	//动态维护路由防止添加后路由不刷新
	routers: state => state.permission.routers
}
export default getters